package com.ai.bitcoin.contrab.handler;

import com.ai.bitcoin.init.SpringContext;
import com.ai.bitcoin.service.SubCoinService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class CheckExpireSubCoinHandle implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("start coin expire job");
        SubCoinService subCoinService = (SubCoinService) SpringContext.getBean("subCoinService");
        subCoinService.checkExpireSubCoin();
    }

}
